<div class="card">
	<div class="card-header border-bottom-0 d-flex justify-content-between align-items-center">
		<div>总计共有<strong class="text-danger px-2">{$count['all']}</strong>位用户 {if $is_search}有<strong class="text-danger px-2">{$count['search']}</strong>位用户符合搜索条件{/if}</div>
		<div>
			<a class="btn btn-success btn-sm" href="{:url('admin/user/add_user')}">新增用户</a>
			<a class="btn btn-info btn-sm" href="{:url('admin/user/batch_add')}">批量创建</a>
		</div>
	</div>
	<div class="card-body p-0">
		<table class="table table-hover mb-0">
			<thead>
				<tr>
					<th width="80">UID</th>
					<th>用户名</th>
					<th width="160">最后登录</th>
					<th>过期时间</th>
					<th>角色</th>
					<th>
						vip权限
						<svg data-toggle="tooltip" data-html="true" data-placement="right" data-title="vip等级" class="text-info iconfont mr-2" aria-hidden="true">
						    <use xlink:href="#icon-bangzhu"></use>
						</svg>
					</th>
					<th width="100"></th>
				</tr>
			</thead>
			<tbody>
				{foreach $user_list as $user}
					<tr>
						<td>{$user['uid']}</td>
						<td>{$user['username']}</td>
						<td>{$user['last_time']}</td>
						<td>{$user['vip_expire_time'] ?? '--'}</td>
						<td>{$user['type_text']}</td>
						<td>{$user['vip_type_text']}</td>
					</tr>
				{/foreach}
			</tbody>
		</table>
	</div>
	{if $page}<div class="card-footer">{$page|raw}</div>{/if}
</div>
